<?php
	$mysql = new mysqli("localhost","root","","yihe");
	if($mysql -> connect_error){
		exit ("数据库连接失败");
	}
	$phone_origin = $_GET["phone_origin"];
	$phone_new = $_GET["phone_new"];
	$update_sql = "update user_info set user_phone = '{$phone_new}' where user_phone = '{$phone_origin}'";
	$result = $mysql -> query($update_sql);
	if($result){
		echo "1";
	}else{
		echo "0";
	}
?>